x = int(input())
if (x % 4 == 0 and x % 100 != 0) or (x % 400 == 0):
    print(f"{x}年是闰年")
else:
    print(f"{x}年不是闰年")